package com.luis.toolbox.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
@ConfigurationProperties(prefix="mapping")
@PropertySource(value="classpath:equip-mapping.properties")
public class EquipMappingConfig {
    private Map<String,String> equip = new HashMap<>();

    public Map<String, String> getEquip() {
        return equip;
    }

    public void setEquip(Map<String, String> equip) {
        this.equip = equip;
    }

    public String get(String key) {
        return equip.get(key);
    }
}
